DRAFT: Split Runtime and Editor code into separate assemblies#2321
DRAFT: Split Runtime and Editor code into separate assemblies#2321jfreire-unity wants to merge 39 commits intodevelopfrom
Conversation
- Move InputSystem/* to Runtime/ (preserving history) - Move InputSystem/Editor to Editor/ (preserving history) - Add meta files for new folder structure - Follows Unity package layout conventions - All file history preserved via git mv
Also exposes the required internals between assemblies.
This is done to avoid calling into Edito specific code. Instead, it will be called if Editor code has registered a callback.
Due to refactoring, a lot of paths still contained the InputSystem folder path that no longer exists. We only have Editor and Runtime folders.
Packages/com.unity.inputsystem/Editor/Plugins/HID/HIDSupportEditorInitializer.cs
Outdated
Show resolved
Hide resolved
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr |
Some files were moved to other folders, after merging conflicts arise but since they showed as removed changes didn't land on the moved files. This commit is fixing this
… event buffer init; checked casts; null when empty
…utActionAsset expression body
… spacing (PVP-133-2 and PVP-122-2)
| @@ -84,6 +80,8 @@ public unsafe InputUpdateDelegate onUpdate | |||
| { | |||
| eventBufferPtr->eventCount = 0; | |||
| eventBufferPtr->sizeInBytes = 0; | |||
| eventBufferPtr->capacityInBytes = 0; | |||
| eventBufferPtr->eventBuffer = (void*)0; | |||
There was a problem hiding this comment.
Set to "0" eventBufferPtr->capacityInBytes = 0; and eventBufferPtr->capacityInBytes.
| @@ -258,7 +267,7 @@ public bool runInBackground | |||
| // In older version this is stored here and package override module/platform. | |||
| private float m_PollingFrequency = 60.0f; | |||
| #endif | |||
| private bool m_DidCallOnShutdown = false; | |||
| private bool m_DidCallOnShutdown; | |||
There was a problem hiding this comment.
By default equals false
Description
Please fill this section with a description what the pull request is trying to address and what changes were made.
Testing status & QA
Please describe the testing already done by you and what testing you request/recommend QA to execute. If you used or created any testing project please link them here too for QA.
Overall Product Risks
Please rate the potential complexity and halo effect from low to high for the reviewers. Note down potential risks to specific Editor branches if any.
Comments to reviewers
Please describe any additional information such as what to focus on, or historical info for the reviewers.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.